<%-- 
    Document   : index
    Created on : 02/09/2011, 10:38:01
    Author     : aluno
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="layout.css" media="screen" />
    </head>
    <body background="images/login-bg.jpg"/> 
    <div id="wrap">
        <div id="menu" >
            <ul>
                <li><a href="#">Home</a></li>
                <li><a href="#">Comunidades</a></li>
                <li><a href="#">Artistas</a></li>
                <li><a href="#">Músicas</a></li>
                <div id="buscalogin"><li><input type="text" name="busca" size="20" /></li>
                    <li><input type="button" name="Ok" value="ok" /></li></div>
            </ul>
        </div>
        <div id="login">
            <form name="form" action="ServletLogin" method="POST">
                <p> Login: <input type="text" name="login" value="" size="20" /> </p>
                <p> Senha: <input type="password" name="senha" value="" /> </p>    
                    <%
                        out.println("<p>");
                        String erro = (String) request.getAttribute("erro");
                        if (erro != null) {
                            out.println(erro);
                        }
                        out.println("</p>");
                    %>
                <p> <input type="submit" value="Login" name="ok" /> </p>
                <p> <a href="cadUsuario.jsp"> Ainda não se cadastrou? </a> </p>
            </form>
        </div>
    </div>
</body>
</html>
